﻿@model Vote.Models.VoteShowModel
@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>
<input id="txt" />
<button id="btn">提交(局部实现刷新)</button>
<div id="data">
    @{Html.RenderAction("GetData");}
</div>
<hr />
<script src="@Url.Content("~/Scripts/jquery-1.9.1.min.js")"></script>
<script>
    $("#btn").click(function () {
        $("#data").load("/Test/getdata", { "message": $("#txt").val() }, function () {
            alert("提交成功");
        });
    });
</script>